﻿namespace KinonekoSoftware.Foundation.UI.Controls
{
    public class Menu : ForestMenuBase
    {
        protected override DependencyObject GetContainerForItemOverride()
        {
            return new MenuItem();
        }
    }

    public class ContextMenu : ForestContextMenuBase
    {
        protected override DependencyObject GetContainerForItemOverride()
        {
            return new MenuItem();
        }
    }
    
    public class HybridContextMenu : ForestContextMenuBase
    {
        protected override bool IsItemItsOwnContainerOverride(object item)
        {
            if (item is FrameworkElement)
            {
                return true;
            }
            
            return base.IsItemItsOwnContainerOverride(item);
        }
        protected override DependencyObject GetContainerForItemOverride()
        {
            return new MenuItem();
        }
    }

    public class MenuItem : ForestMenuItemBase
    {
        
    }
}